package com.hspedu.static_.main_;

public class AbstractExercise01 {
    public static void main(String[] args) {
        Emplyee employee = new Manager("jack", "123", 3400,100);
        employee.work();
    }
}

abstract class Emplyee{
    private String name;
    private String id;
    private double salary;

    public Emplyee(String name, String id, double salary) {
        this.name = name;
        this.id = id;
        this.salary = salary;
    }

    public abstract void work();
}

class Manager extends Emplyee{
    private double bonus;

    public Manager(String name, String id, double salary, double bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public void work(){
        System.out.println("manager is working");
    }
}